﻿<?php
class UserModel extends Model{
	protected $_validate=array(
		array('password','require','白痴，没密码也想登陆'),
		array('username','require','你他妈告诉我名字啊'),
		array('code','checkCode','真TM傻逼，验证码填错了',0,callback,1),
	);
	protected function checkCode($code){
		if(md5($code)!=$_SESSION['code']){
			return false;
		}else{
			return true;
		}
	}
}
?>